#include <led.h>
#include <AT89X52.h>

unsigned char choose[8]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
unsigned char show[18]={0X3f,0X06,0X5B,0X4F,0X66,0X6D,0X7D,0X07,0X7F,0X6F,0X77,0X7C,0X39,0X5E,0X79,0X71,0X40,0X00};

void main()
{
int i;
for(i=0;;i++)
	{
		P1=choose[i%8];
		P0=show[i%18];
		Delay();
		Delay();
				Delay();
	}




}

